package com.aihongbo.test.aidl

import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log

class LogService : Service() {

    private val TAG = LogService::class.java.simpleName

    private val binder: ILogAidlInterface.Stub = object : ILogAidlInterface.Stub() {

        override fun sendLog(msg: String?) {
            Log.d(TAG, "=====>收到日志消息：${msg}")
        }
    }

    override fun onBind(intent: Intent): IBinder {
        return binder
    }
}